package com.zbh.uexam.repository;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhoubh
 * @param <T> mapper泛型
 */
public interface BaseMapper<T> {

    List<T> selectAll();

    int deleteByPrimaryKey(Integer id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);
}
